package com.easylinkin.linkappapi.videomonitor.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.device.entity.Device;
import com.easylinkin.linkappapi.videomonitor.entity.DeviceVideoMonitor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.videomonitor.entity.DeviceVideoMonitorVo;
import com.easylinkin.linkappapi.videomonitor.entity.DeviceVideoPlaybackVo;

public interface DeviceVideoMonitorService extends IService<DeviceVideoMonitor>{


    int batchInsert(List<DeviceVideoMonitor> list);

    /***
     * 查询分页
     * @param page
     * @param device
     * @return
     */
    IPage<DeviceVideoMonitorVo> page(Page page, Device device);

    /***
     * 分页查询未绑定
     * @param page
     * @param device
     * @return
     */
    IPage<DeviceVideoMonitorVo> pageNotBind(Page page, Device device);


    /***
     * 查询所有
     * @param device
     * @return
     */
    List<DeviceVideoMonitorVo> getDeviceVideoMonitorAll(Device device);

    /***
     * 新增
     * @param device
     */
    void saveBatchbind(Device device);

    /***
     * 删除
     * @param device
     */
    void delete(Device device);

    /***
     * 回放
     * @param device
     * @return
     */
    IPage<DeviceVideoPlaybackVo> playback(Page page,Device device);
}
